package eval.utilities.random;

import cern.jet.random.AbstractDistribution;

/**
 * It always returns the same value
 * */
public class ConstantDistribution extends AbstractDistribution {

	private static final long serialVersionUID = 1L;

	private int average;

	public ConstantDistribution(int average) {
		this.average = average;
	}

	@Override
	public double nextDouble() {
		return average;
	}
	
	@Override
	public int nextInt() {
		return average;
	}
}
